//
//  NetRequest.h
//  LvXi_newVersion
//
//  Created by 王敏 on 16/8/20.
//  Copyright © 2016年 SJT. All rights reserved.
//

#import <AFNetworking/AFNetworking.h>

typedef void(^RequestHandle)(BOOL success,id responseDict);
@interface NetRequest : AFHTTPSessionManager


/**回调block*/
@property(nonatomic,copy)RequestHandle  handle;

+(instancetype)request;

-(void)GetWithUrl:(NSString*)url prama:(NSDictionary*)prama requestHandle:(RequestHandle)handle;

-(void)PostWithUrl:(NSString*)url prama:(NSDictionary*)prama requestHandle:(RequestHandle)handle;

-(void)PostWithUrl:(NSString *)url prama:(NSDictionary *)prama data:(NSData*)data name:(NSString*)name filename:(NSString*)fileName type:(NSString*)type requestHandle:(RequestHandle)handle;

-(void)downloadImageWithUrl:(NSString*)url requestHandle:(RequestHandle)handle;


@end
